import Vue from 'vue'
import Router from 'vue-router'

//路由组件
import home from './components/tabar/home.vue'
import member from './components/tabar/member.vue'
import search from './components/tabar/search.vue'
import shopcar from './components/tabar/shopcar.vue'
import newlists from './components/news/newlists.vue'
import newsinfo1 from './components/news/newsinfo1.vue'
import newsinfo2 from './components/news/newsinfo2.vue'
import newsinfo3 from './components/news/newsinfo3.vue'
import photolists from './components/photo/photolists.vue'
//import photoInfo from './components/photos/PhotoInfo.vue'
import goodlists from './components/goods/goodlists.vue'
import goodsinfo from './components/goods/goodsinfo.vue'
import feedbacks from './components/goods/feedbacks.vue'
import videos from './components/goods/videos.vue'
import contacts from './components/goods/contacts.vue'

Vue.use(Router)

export default new Router({
  //mode: 'history',
  //base: process.env.BASE_URL,
  routes: [
    {path:'/',redirect:'/home'},
    {path: '/home', component: home},
    {path: '/member', component: member},
    {path: '/search', component: search},
    {path: '/shopcar', component: shopcar},
    {path:'/home/newlists',component:newlists},
    {path:'/home/newsinfo1',component:newsinfo1},
    {path:'/home/newsinfo2',component:newsinfo2},
    {path:'/home/newsinfo3',component:newsinfo3},
    {path:'/home/photolists',component:photolists},
    //{ path: '/home/photoinfo/:id', component: PhotoInfo }
    {path:'/home/goodlists',component:goodlists},
    {path:'/home/goodsinfo',component:goodsinfo},
    //{path:'/home/goodsinfo/:id',component:goodsinfo,name:goodsinfo},
    {path:'/home/feedbacks',component:feedbacks},
    {path:'/home/videos',component:videos},
    {path:'/home/contacts',component:contacts}
  ],
  linkActiveClass:"mui-active"
});

